package com.chen.authority.model.qo;

import com.chen.authority.common.annotation.Query;
import com.chen.authority.common.enums.QueryType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 操作日志 数据传输对象
 *
 * @author chengy
 * @date 2022/11/05
 */
@Data
public class OperationLogQo {

    /**
     * 操作模块
     */
    @ApiModelProperty("操作模块")
    @Query(column = "module")
    private String module;

    /**
     * 业务类型
     */
    @ApiModelProperty("业务类型（INSERT DELETE UPDATE IMPORT EXPORT FORCE OTHER")
    @Query(type = QueryType.EQ, column = "business_type")
    private String businessType;

    /**
     * 操作人员
     */
    @ApiModelProperty("操作人员")
    @Query(column = "operator")
    private String operator;

    /**
     * 操作状态
     */
    @ApiModelProperty("操作状态（0成功 1失败）")
    @Query(type = QueryType.EQ, column = "status")
    private Integer status;

    /**
     * 操作地址
     */
    @ApiModelProperty("操作地址")
    @Query(column = "location")
    private String location;

    /**
     * 开始时间
     */
    @ApiModelProperty("开始时间")
    @Query(type = QueryType.GE, column = "oper_time")
    private String beginTime;

    /**
     * 结束时间
     */
    @ApiModelProperty("结束时间")
    @Query(type = QueryType.LE, column = "oper_time")
    private String endTime;

}